<?php
	class Color{
		
		var $redQuantity;
		var $greenQuantity;
		var $blueQuantity;
		var $colorName;
		
		public function Color($array){
			if(isset($array['redQuantity'])) $this->redQuantity = $array['redQuantity'];
			if(isset($array['greenQuantity'])) $this->greenQuantity = $array['greenQuantity'];
			if(isset($array['blueQuantity'])) $this->blueQuantity = $array['blueQuantity'];
			if(isset($array['colorName'])) $this->colorName = $array['colorName'];
		}
		
		public function __toString(){
			return $this->colorName;
		}
	}
?>